Back-facing Styles
Labels
-
ASCII
-
BackfacingStyle
-
Binary
-
bckf
( =
0x62636B66
)
Back-facing styles
Both 0x00000000
Culled 0x00000001
Flipped 0x00000002
Constant descriptions
-
Both
-
A renderer should draw shapes that face toward and away from the camera. If a shape has only front-facing attributes, those attributes are used for both sides of the shape.
-
Culled
-
A renderer should not draw shapes that face away from the camera (this is not the same as hidden surface removal).
-
Flipped
-
A renderer should draw shapes that face toward and away from the camera. If a shape has only front-facing attributes, those attributes are used for both sides of the shape, but the normals of back-facing shapes are inverted, so that they face toward the camera.
Data Format
BackfacingEnum backfacing
-
backfacing
-
The value in this field must be one of the three constants defined above.
Description
A scene's back-facing style determines whether or not a renderer draws shapes that face away from a scene's camera. This style object defines some of the characteristics of a renderer and generally applies to all of the objects in a model.
Parent Hierarchy
Shared, shape, style.
Example
BeginGroup ( OrderedDisplayGroup ( ) )
Matrix ( ... )
BackfacingStyle ( Both )
Mesh ( ... )
Mesh ( ... )
EndGroup ( )
© 1997 Apple Computer, Inc.
Previous | QD3D Book | Overview | Chapter Contents | Next |